﻿package com.cwises.entity.withdraw;

import java.util.Date;

import com.cwises.entity.shop.ShopData;
import com.orm.BaseEntity;

public class Withdraw extends BaseEntity {

    private String id;

    private String shop_id;
    
    private double w_score=0;
    
    private int w_gold=0;
    
    private double amount; //提现金额（元）

    private String bank_name;
    
    private String bank_user;
    
    private String bank_account;
    
    private String withdraw_num;

    private String status;
    
    private Date create_time;
    
    private String create_person;
    
    private Date update_time;
    
    private String update_person;
    
	public Withdraw() {
		super();
	}

	public Withdraw(ShopData shopData) {
		super();
	    this.bank_name=shopData.getBank_name();
	    this.bank_user=shopData.getBank_user();
	    String account=shopData.getBank_account();
	    this.bank_account=account.substring(0,3)+"******"+account.substring(account.length()-3);
	}
	
	public void setShopData (ShopData shopData) {
		this.bank_name=shopData.getBank_name();
		this.bank_user=shopData.getBank_user();
		String account=shopData.getBank_account();
		this.bank_account=account.substring(0,3)+"******"+account.substring(account.length()-3);
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Date getCreate_time() {
		return create_time;
	}

	public void setCreate_time(Date create_time) {
		this.create_time = create_time;
	}

	public String getCreate_person() {
		return create_person;
	}

	public void setCreate_person(String create_person) {
		this.create_person = create_person;
	}

	public Date getUpdate_time() {
		return update_time;
	}

	public void setUpdate_time(Date update_time) {
		this.update_time = update_time;
	}

	public String getUpdate_person() {
		return update_person;
	}

	public void setUpdate_person(String update_person) {
		this.update_person = update_person;
	}

	public String getShop_id() {
		return shop_id;
	}

	public void setShop_id(String shop_id) {
		this.shop_id = shop_id;
	}

	public double getW_score() {
		return w_score;
	}

	public void setW_score(double w_score) {
		this.w_score = w_score;
	}

	public int getW_gold() {
		return w_gold;
	}

	public void setW_gold(int w_gold) {
		this.w_gold = w_gold;
	}

	public String getBank_name() {
		return bank_name;
	}

	public void setBank_name(String bank_name) {
		this.bank_name = bank_name;
	}

	public String getBank_user() {
		return bank_user;
	}

	public void setBank_user(String bank_user) {
		this.bank_user = bank_user;
	}

	public String getBank_account() {
		return bank_account;
	}

	public void setBank_account(String bank_account) {
		this.bank_account = bank_account;
	}

	public String getWithdraw_num() {
		return withdraw_num;
	}

	public void setWithdraw_num(String withdraw_num) {
		this.withdraw_num = withdraw_num;
	}

	public double getAmount() {
		return amount;
	}

	public void setAmount(double amount) {
		this.amount = amount;
	}
    
}
